home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / mig / dist / string.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-06  |  2.1 KB  |  69 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1991,1990 Carnegie Mellon University
  4.  * All Rights Reserved.
  5.  * 
  6.  * Permission to use, copy, modify and distribute this software and its
  7.  * documentation is hereby granted, provided that both the copyright
  8.  * notice and this permission notice appear in all copies of the
  9.  * software, derivative works or modified versions, and any portions
  10.  * thereof, and that both notices appear in supporting documentation.
  11.  * 
  12.  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS 
  13.  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
  14.  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  15.  * 
  16.  * Carnegie Mellon requests users of this software to return to
  17.  * 
  18.  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
  19.  *  School of Computer Science
  20.  *  Carnegie Mellon University
  21.  *  Pittsburgh PA 15213-3890
  22.  * 
  23.  * any improvements or extensions that they make and grant Carnegie the
  24.  * rights to redistribute these changes.
  25.  */
  26. /*
  27.  * HISTORY
  28.  * $Log:    string.h,v $
  29.  * Revision 2.3  91/02/05  17:55:57  mrt
  30.  *     Changed to new Mach copyright
  31.  *     [91/02/01  17:56:03  mrt]
  32.  * 
  33.  * Revision 2.2  90/06/02  15:05:49  rpd
  34.  *     Created for new IPC.
  35.  *     [90/03/26  21:13:56  rpd]
  36.  * 
  37.  * 07-Apr-89  Richard Draves (rpd) at Carnegie-Mellon University
  38.  *    Extensive revamping.  Added polymorphic arguments.
  39.  *    Allow multiple variable-sized inline arguments in messages.
  40.  *
  41.  * 15-Jun-87  David Black (dlb) at Carnegie-Mellon University
  42.  *    Fixed strNULL to be the null string instead of the null string
  43.  *    pointer.
  44.  *
  45.  * 27-May-87  Richard Draves (rpd) at Carnegie-Mellon University
  46.  *    Created.
  47.  */
  48.  
  49. #ifndef    _STRING_H
  50. #define    _STRING_H
  51.  
  52. #include <strings.h>
  53.  
  54. typedef char *string_t;
  55. typedef string_t identifier_t;
  56.  
  57. #define    strNULL        ((string_t) 0)
  58.  
  59. extern string_t strmake(/* char *string */);
  60. extern string_t strconcat(/* string_t left, right */);
  61. extern void strfree(/* string_t string */);
  62.  
  63. #define    streql(a, b)    (strcmp((a), (b)) == 0)
  64.  
  65. extern char *strbool(/* boolean_t bool */);
  66. extern char *strstring(/* string_t string */);
  67.  
  68. #endif    _STRING_H
  69.